from selenium.webdriver.common.by import By

from BasePage.basepage import BasePage


class PageAddAdress(BasePage):
    def __init__(self, driver):
        super().__init__(driver)
        self.driver = driver
        # 我的地址
        self.myaddress = (By.ID, "com.tpshop.malls:id/shortcut_iv")
        # 新增地址
        self.newadress = (By.ID, "com.tpshop.malls:id/add_address_tv")
        # 姓名
        self.name = (By.ID, "com.tpshop.malls:id/consignee_name_et")
        # 电话
        self.phone = (By.ID, "com.tpshop.malls:id/consignee_mobile_et")
        # 地址
        self.address = (By.ID, "com.tpshop.malls:id/address_et")
